﻿namespace OboutInc.Show
{
    using System;
    using System.ComponentModel;
    using System.Web.UI;

    [ToolboxItem(false), TypeConverter(typeof(ExpandableObjectConverter))]
    public class NoJavaScript : Control
    {
        protected override void Render(HtmlTextWriter writer)
        {
            writer.Write("<noscript>");
            if (!this.HasControls())
            {
                writer.Write("JavaScript is disabled. <br />For customize this text use &lt;NoJavaScript&gt; element.");
            }
            base.Render(writer);
            writer.Write("</noscript>");
        }
    }
}

